package Work0513;

public class CarSupervise {
	private long phone;
	private String address;

	public CarSupervise(long phone, String address) {
		this.phone = phone;
		this.address = address;
	}

	public void supervise(Car a) {
		System.out.println("欢迎来到车辆检测中心");
		System.out.println("开始检测" + a.getColour() + "的" + a.getName() + "车");
		System.out.println("正在依次检测:");
		a.start();
		a.accelerate();
		a.brake();
		System.out.println("全部合格,欢迎下次再来.");
		System.out.println("我们的电话是" + phone + ",地址" + address);
	}
}
